﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DiaryPlanner
{
    public partial class PhotoDeleteCheck : Form
    {
        Album thisAlbumObject;
        public PhotoDeleteCheck(Album a)
        {
            thisAlbumObject = a;
            InitializeComponent();
            skinSet();
        }
        public void skinSet()
        {
            string skin = UserProfile.Instance().setting;
            if (skin == "b")
            {
                this.BackColor = System.Drawing.Color.PaleTurquoise;

            }
            else if (skin == "c")
            {
                this.BackColor = System.Drawing.Color.LawnGreen;
            }
            else if (skin == "d")
            {
                this.BackColor = System.Drawing.Color.MistyRose;

            }
            else
            { //skin=="a"
                this.BackColor = System.Drawing.SystemColors.ControlLight;

            }
        }

        private void button1_Click(object sender, EventArgs e)//예 > 사진 삭제
        {
            thisAlbumObject.photoDeleteChecker = true;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)//아니요 > 삭제 하지 않음
        {
            thisAlbumObject.photoDeleteChecker = false ;
            this.Close();
        }
    }
}
